/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package simulador;

import java.awt.Color;
import java.awt.Point;

/**
 *
 * @author rangel
 */
public class Atom {
	private Color color;
	private Point point;
	private float cost;
	public Atom(Color c, Point p, float cost){
		color = c;
		point = p;
		this.cost = cost;
	}
	public int getX(){
		return point.x;
	}
	public String toString() {
		return ("("+point.x+", "+point.y+")");
	}

	public int getY(){
		return point.y;
	}

	public Color getColor(){
		return color;
	}

	public float getCost(){
		return cost;
	}

	public void setColor(Color c) {
		color = c;
	}

	public void setCost(float c) {
		cost = c;
	}
}
